{% extends "bootstrap/base.html" %}

{% block title %}可视化批量销账平台{% endblock %}

{% block head %}
    {{ super() }}
    <link rel="shortcut icon" href="{{ url_for('static', filename='images/favicon.ico') }}" type="image/x-icon">
    <link rel="icon" href="{{ url_for('static', filename='images/favicon.ico') }}" type="image/x-icon">
    <script type=text/javascript src="{{ url_for('static', filename='js/base.js') }}"></script>
{% endblock %}

{% block navbar %}
    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <!--class="navbar-brand"-->
                <a class="navbar-brand" href="/main" onclick="clear_interval()"><span style="color: crimson; "><span class="glyphicon glyphicon-home"></span></span></a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="/main/task/NetnpTrans" onclick="clear_interval()">携转工单</a></li>
                    <li><a href="/main/task/ScoreBackup" onclick="clear_interval()">积分月末镜像备份</a></li>
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">批量销账<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="/main/task/WriteOff_DataCheck" onclick="clear_interval()">数据检查</a></li>
                            <li><a href="/main/task/WriteOff_GetSFiles" onclick="clear_interval()">取S文件</a></li>
                            <li><a href="/main/task/WriteOff_StartCalc" onclick="clear_interval()">批扣计算</a></li>
                            <li><a href="/main/task/WriteOff_BakupFiles" onclick="clear_interval()">文件备份</a></li>
                            <li><a href="/main/task/WriteOff_Files2Db" onclick="clear_interval()">文件入库</a></li>
                        </ul>
                    </li>
                    <li><a href="/main/task/WriteOff_BalanceCheck" onclick="clear_interval()">批扣平衡性检查</a></li>
                    <li class="dropdown">
                        <a class="dropdown-toggle" data-toggle="dropdown" href="#">积分计算<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="/main/task/ScoreCalc_DataCheck" onclick="clear_interval()">数据检查</a></li>
                            <li><a href="/main/task/ScoreCalc_Filter" onclick="clear_interval()">积分分拣</a></li>
                            <li><a href="/main/task/ScoreCalc_StartCalc" onclick="clear_interval()">积分计算</a></li>
                            <li><a href="/main/task/ScoreCalc_File2DB" onclick="clear_interval()">文件入库</a></li>
                            <li><a href="/main/task/ScoreCalc_Effect" onclick="clear_interval()">积分生效</a></li>
                        </ul>
                    </li>
                    <li><a href="/main/bakup/ReportBakup" onclick="clear_interval()">备份检查</a></li>
                    <li><a class="navbar-right" href="/main/aischeduler" target="_blank" onclick="clear_interval()">调度平台</a><li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="/main" onclick="clear_interval()"><span style="color: blue; "><span class="glyphicon glyphicon-user" >{{ username }}</span></span></a></li>
                    <li><a href="/auth/login" onclick="clear_interval()"><span style="color: purple; "><span class="glyphicon glyphicon-log-out">LogOut</span></span></a><li>
                </ul>
            </div>
        </div>
    </div>
{% endblock %}

{% block content %}
    <div class="container">
        <div class="page-header" style="overflow-y:hidden;overflow-x:hidden"></div>
        {% block page_content %}
            {% for message in get_flashed_messages() %}
            <div class="alert alert-warning">
                <button type="button" class="close" data-dismiss="alert">&times;</button>
                {{ message }}
            </div>
            {% endfor %}
        {% endblock %}
    </div>
{% endblock %}

{% block scripts %}
    {{ super() }}
    {{ moment.include_moment() }}
{% endblock %}
